package thread;

class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("线程任务入口");
        System.out.println("线程任务执行完毕");
    }
}

public class demo2 {

    public static void main(String[] args) {

        Thread t = new Thread(new MyRunnable(), "这是我的线程名字");
        t.start();
        System.out.println("main");

    }
}
